GridWithWeights.cost

Gets the weighting for an item

struct GridWithWeights(T, U = ubyte, V = typeof(T.x))
U
cost
(
T a
,
T b
,
U default_ = 1
)

Parameters

a T

Previous position

b T

Current position

default_ U

Default value to return. Default: 1

Meta